package tec;
import poounit.*;


public class TestJaugeNaturelException
{
	private static JaugeNaturel inverse;
	private static JaugeNaturel egale;


	public static void lancer()
	{
		testCreationNonValide();

		try {
			testExceptionControlee();
		}
		catch(ClassNotFoundException e){
			System.out.println("ClassNotFound");
		}
	
	}

	@Test
	private static void testCreationNonValide(){

		try {
			inverse = new JaugeNaturel(78, 13, 0);
		}
		catch(IllegalArgumentException e){
			System.out.println("erreur, MAX<MIN");
			System.out.println(inverse);
		}
		try {
			egale = new JaugeNaturel(-45, -45, -45);
		}
		catch (IllegalArgumentException e){
			System.out.println("erreur, MAX=MIN");
		} 
	}

	private static void testExceptionControlee() throws ClassNotFoundException{
//		throw new ClassNotFoundException();
	}
}
